package 编程能力入门1;

public class _1在区间范围内统计奇数数目 {
    public int countOdds(int low, int high) {
        if(low == 0 && high == 0) return 0;
        int res = 0;
        for(int i=low;i<=high;i++){
            if((i&1) == 1){ //奇数
                res++;
            }
        }
        return res;
    }
}
